package cn.iocoder.yudao.framework.business.comment.pojo.vo;

import cn.iocoder.yudao.framework.business.basic.pojo.vo.MemberScopeVO;
import cn.iocoder.yudao.framework.business.basic.pojo.vo.UserSimpleVO;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.List;

@Tag(name = "评论 Response VO")
@Data
public abstract class AdminCommentVO extends MemberScopeVO {

    @Schema(description = "父级编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "24965")
    private Long parentId;

    @Schema(description = "祖级编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "24965")
    private Long grandpaId;

    @Schema(description = "目标用户编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "15721")
    private Long tageUserId;

    private UserSimpleVO targetUser;

    @Schema(description = "星级评分，0-5 分", example = "5")
    private Integer score;

    @Schema(description = "评论内容", requiredMode = Schema.RequiredMode.REQUIRED, example = "好评")
    private String content;

    @Schema(description = "评论图片")
    private List<String> pictureUrls;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    private LocalDateTime createTime;

}
